﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Don_xin_nghi_phep.aspx.cs" Inherits="ChucNang_Don_xin_nghi_phep" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 254px;
        }
        .style3
        {
            width: 206px;
        }
        .style4
        {
            width: 448px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table cellspacing="0" cellpadding="2" style="width: 100%;" class="cssTable" border="0">
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:Label ID="lbl_thong_tin_chi_tiet_tv" runat="server" CssClass="cssPageTitle"
                    Text="Tạo đơn xin nghỉ phép" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label6" CssClass="cssManField" runat="server" Text="Tên &lt;U&gt;N&lt;/U&gt;hân viên" />
            </td>
            <td>
                <asp:DropDownList ID="m_cbo_user" runat="server" Width="300px" CssClass="cssDorpdownlist"
                    OnSelectedIndexChanged="m_cbo_user_SelectedIndexChanged" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                <asp:Label ID="Label4" CssClass="cssManField" runat="server" Text="Xin nghỉ từ: " />
            </td>
            <td class="style4">
                <ew:CalendarPopup ID="m_dat_nghi_tu" runat="server" ControlDisplay="TextBoxImage"
                    GoToTodayText="Hôm nay:" ImageUrl="~/Images/cal.gif" Nullable="True" NullableLabelText=""
                    ShowGoToToday="True" Width="50%" SelectedDate="" Text="" Culture="vi-VN" DisableTextboxEntry="False">
                    <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <OffMonthStyle BackColor="AntiqueWhite" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Gray" />
                    <SelectedDateStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <MonthHeaderStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <TodayDayStyle BackColor="LightGoldenrodYellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                </ew:CalendarPopup>
            </td>
            <td>
                <asp:Label ID="Label5" Style="float: right;" CssClass="cssManField" runat="server"
                    Text="đến: " />
            </td>
            <td>
                <ew:CalendarPopup ID="m_dat_nghi_den" runat="server" ControlDisplay="TextBoxImage"
                    GoToTodayText="Hôm nay:" ImageUrl="~/Images/cal.gif" Nullable="True" NullableLabelText=""
                    ShowGoToToday="True" Width="50%" SelectedDate="" Text="" Culture="vi-VN" DisableTextboxEntry="False">
                    <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <OffMonthStyle BackColor="AntiqueWhite" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Gray" />
                    <SelectedDateStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <MonthHeaderStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <TodayDayStyle BackColor="LightGoldenrodYellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                </ew:CalendarPopup>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
                <asp:Label ID="Label1" CssClass="cssManField" runat="server" Text="Hình thức nghỉ: " />
            </td>
            <td class="style4">
                <asp:DropDownList ID="m_cbo_hinh_thuc_nghi" runat="server" Width="264px" CssClass="cssDorpdownlist"
                    Visible="False" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right" class="style3">
                <asp:Label ID="Label8" CssClass="cssManField" runat="server" Text="Lý do:" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ly_do" runat="server" Height="49px" TextMode="MultiLine" Width="435px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td valign="top" colspan="2">
                <asp:HiddenField ID="m_hdf_id_nghi_phep" runat="server" Visible="False" />
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center">
                <asp:Button ID="m_cmd_tao_moi" AccessKey="c" CssClass="cssButton" runat="server"
                    Width="98px" Text="Tạo mới(c)" OnClick="m_cmd_tao_moi_Click" Height="22px" />
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="m_btn_cap_nhat" AccessKey="v" CssClass="cssButton" runat="server"
                    Width="100px" Text="Cập nhật" Height="22px" OnClick="m_btn_cap_nhat_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="m_btn_xoa_trang" AccessKey="x" CssClass="cssButton" runat="server"
                    Width="100px" Text="Nhập lại" Height="22px" OnClick="m_btn_xoa_trang_Click" />
            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:Label ID="m_lbl_tieu_de_2" runat="server" CssClass="cssPageTitle" Text="Danh sách từ điển hệ thống" />
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:Label ID="m_lbl_thong_bao" Visible="false" runat="server" CssClass="cssManField" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="height: 450px;" valign="top">
                <asp:GridView ID="m_grv_dm_nghi_phep" runat="server" AutoGenerateColumns="False"
                    Width="100%" DataKeyNames="ID" CellPadding="4" ForeColor="#333333" GridLines="Both"
                    CssClass="cssGrid" OnRowDeleting="m_grv_dm_nghi_phep_RowDeleting" OnSelectedIndexChanging="m_grv_dm_nghi_phep_SelectedIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %></ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="Mã nhân viên" Visible="False">
                            <ItemStyle HorizontalAlign="Left" Width="4%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="TEN_NHAN_VIEN" HeaderText="Tên nhân viên" />
                        <asp:BoundField DataField="HINH_THUC_NGHI" HeaderText="Hình thức nghỉ" />
                        <asp:BoundField DataField="NGHI_TU_NGAY" HeaderText="Nghỉ từ ngày" />
                        <asp:BoundField DataField="DEN_NGAY" HeaderText="Nghỉ đến ngày" />
                        <asp:BoundField DataField="LY_DO" ItemStyle-HorizontalAlign="Center" HeaderText="Lý do nghỉ">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Xóa">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbt_delete" runat="server" CommandName="Delete" ToolTip="Xóa"
                                    OnClientClick="return confirm ('Bạn có thực sự muốn xóa bản ghi này?')">
                     <img alt="Xóa" src="../Images/Button/deletered.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sửa">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbt_update" runat="server" CausesValidation="false" CommandName="Select"
                                    ToolTip="Sửa">
                     <img alt="Sửa" src="../Images/Button/edit.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" Font-Bold="True"
                        ForeColor="#333333"></SelectedRowStyle>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
